package com.aiyan.edu.framework.domain.course;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonAlias;
import lombok.Data;
import lombok.ToString;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;


@Data
@ToString
@Entity
@Table(name = "teachplan")
@GenericGenerator(name = "jpa-uuid", strategy = "uuid")
public class CoursePlan implements Serializable {
    private static final long serialVersionUID = -916357110051689485L;
    @Id
    @GeneratedValue(generator = "jpa-uuid")
    @Column(length = 32)
    private String id;
    private String pname;
    @Column(name = "parent_id")
    private String parentId;
    private String grade;
    private String ptype;
    private String description;
    @Column(name = "course_id")
    private String courseId;
    private String status;
    @Column(name = "order_by")
    private Integer orderBy;
    @Column(name = "time_length")
    private Double timeLength;
    @Column(name = "try_learn")
    private String tryLearn;

}
